package com.diaohw.platform.common.obj.page;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 分页所需参数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 当前页，从1开始
     */
    @Schema(description = "当前页")
    private int pageIndex = 1;
    /**
     * 每页显示条数
     */
    @Schema(description = "每页显示条数")
    private int pageSize = 20;


    @Schema(description = "总页数")
    private int totalRow = -1;


}
